﻿@using MS.Utility.Common;
@using MS.Utility.Config
@using MS.Controls;
@using MS.Identity
@{
    LoginUser loginUser = MS.Identity.SecurityIdentity.GetLoginUser();
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>@ViewBag.Title</title>
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="default">
    <link rel="stylesheet" type="text/css" href="~/Content/lib/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="~/Content/lib/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="~/Scripts/lib/bootstrap-multitabs/multitabs.min.css">
    <link rel="stylesheet" type="text/css" href="~/Content/lib/animate.min.css">
    <link rel="stylesheet" type="text/css" href="~/Content/lib/style.min.css">
    <link href="~/Scripts/lib/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    <link href="~/Scripts/lib/jquery-confirm/jquery-confirm.min.css" rel="stylesheet" />
    @RenderSection("head", false)
</head>
<body>

    <div class="lyear-layout-web">
        <div class="lyear-layout-container">
            <!--左侧导航-->
            <aside class="lyear-layout-sidebar">

                <!-- logo -->
                <div id="logo" class="sidebar-header">
                    <a href="/BMS"><img src="/Images/logo-sidebar.png" title="LightYear" alt="LightYear" /></a>
                </div>
                <div class="lyear-layout-sidebar-info lyear-scroll">
                    <nav class="sidebar-main">
                        @MSHtml.Menu()
                    </nav>
                    <div class="sidebar-footer">
                        <p class="copyright">Copyright &copy; @DateTime.Now.Year. <a target="_blank" href="">小章鱼</a> All rights reserved.</p>
                    </div>
                </div>

            </aside>
            <!--End 左侧导航-->
            <!--头部信息-->
            <header class="lyear-layout-header">

                <nav class="navbar">

                    <div class="navbar-left">
                        <div class="lyear-aside-toggler">
                            <span class="lyear-toggler-bar"></span>
                            <span class="lyear-toggler-bar"></span>
                            <span class="lyear-toggler-bar"></span>
                        </div>
                    </div>

                    <ul class="navbar-right d-flex align-items-center">
                        @*<li class="dropdown dropdown-notice">
                                <span data-toggle="dropdown" class="icon-item">
                                    <i class="mdi mdi-bell-outline"></i>
                                    <span class="badge badge-danger">10</span>
                                </span>
                                <div class="dropdown-menu dropdown-menu-right">
                                    <div class="lyear-notifications">

                                        <div class="lyear-notifications-title clearfix" data-stopPropagation="true"><a href="#!" class="float-right">查看全部</a>你有 10 条未读消息</div>
                                        <div class="lyear-notifications-info lyear-scroll">
                                            <a href="#!" class="dropdown-item" title="树莓派销量猛增，疫情期间居家工作学习、医疗领域都需要它">树莓派销量猛增，疫情期间居家工作学习、医疗领域都需要它</a>
                                            <a href="#!" class="dropdown-item" title="GNOME 用户体验团队将为 GNOME Shell 提供更多改进">GNOME 用户体验团队将为 GNOME Shell 提供更多改进</a>
                                            <a href="#!" class="dropdown-item" title="Linux On iPhone 即将面世，支持 iOS 的双启动">Linux On iPhone 即将面世，支持 iOS 的双启动</a>
                                            <a href="#!" class="dropdown-item" title="GitHub 私有仓库完全免费面向团队提供">GitHub 私有仓库完全免费面向团队提供</a>
                                            <a href="#!" class="dropdown-item" title="Wasmtime 为 WebAssembly 增加 Go 语言绑定">Wasmtime 为 WebAssembly 增加 Go 语言绑定</a>
                                            <a href="#!" class="dropdown-item" title="红帽借“订阅”成开源一哥，首创者 Cormier 升任总裁">红帽借“订阅”成开源一哥，首创者 Cormier 升任总裁</a>
                                            <a href="#!" class="dropdown-item" title="Zend 宣布推出两项 PHP 新产品">Zend 宣布推出两项 PHP 新产品</a>
                                        </div>

                                    </div>
                                </div>
                            </li>*@
                        <!--切换主题配色-->
                        <li class="">
                            <a href="https://gitee.com/zsc8917zsc_admin/management-system" target="_blank">gitee地址：ManagementSystem</a></small>
                        </li>
                        <li class="dropdown dropdown-skin">
                            <span data-toggle="dropdown" class="icon-item"><i class="mdi mdi-palette"></i></span>
                            <ul class="dropdown-menu dropdown-menu-right" data-stopPropagation="true">
                                <li class="drop-title"><p>LOGO</p></li>
                                <li class="drop-skin-li clearfix">
                                    <span class="inverse">
                                        <input type="radio" name="logo_bg" value="default" id="logo_bg_1" checked>
                                        <label for="logo_bg_1"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="logo_bg" value="color_2" id="logo_bg_2">
                                        <label for="logo_bg_2"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="logo_bg" value="color_3" id="logo_bg_3">
                                        <label for="logo_bg_3"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="logo_bg" value="color_4" id="logo_bg_4">
                                        <label for="logo_bg_4"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="logo_bg" value="color_5" id="logo_bg_5">
                                        <label for="logo_bg_5"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="logo_bg" value="color_6" id="logo_bg_6">
                                        <label for="logo_bg_6"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="logo_bg" value="color_7" id="logo_bg_7">
                                        <label for="logo_bg_7"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="logo_bg" value="color_8" id="logo_bg_8">
                                        <label for="logo_bg_8"></label>
                                    </span>
                                </li>
                                <li class="drop-title"><p>头部</p></li>
                                <li class="drop-skin-li clearfix">
                                    <span class="inverse">
                                        <input type="radio" name="header_bg" value="default" id="header_bg_1" checked>
                                        <label for="header_bg_1"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="header_bg" value="color_2" id="header_bg_2">
                                        <label for="header_bg_2"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="header_bg" value="color_3" id="header_bg_3">
                                        <label for="header_bg_3"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="header_bg" value="color_4" id="header_bg_4">
                                        <label for="header_bg_4"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="header_bg" value="color_5" id="header_bg_5">
                                        <label for="header_bg_5"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="header_bg" value="color_6" id="header_bg_6">
                                        <label for="header_bg_6"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="header_bg" value="color_7" id="header_bg_7">
                                        <label for="header_bg_7"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="header_bg" value="color_8" id="header_bg_8">
                                        <label for="header_bg_8"></label>
                                    </span>
                                </li>
                                <li class="drop-title"><p>侧边栏</p></li>
                                <li class="drop-skin-li clearfix">
                                    <span class="inverse">
                                        <input type="radio" name="sidebar_bg" value="default" id="sidebar_bg_1" checked>
                                        <label for="sidebar_bg_1"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="sidebar_bg" value="color_2" id="sidebar_bg_2">
                                        <label for="sidebar_bg_2"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="sidebar_bg" value="color_3" id="sidebar_bg_3">
                                        <label for="sidebar_bg_3"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="sidebar_bg" value="color_4" id="sidebar_bg_4">
                                        <label for="sidebar_bg_4"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="sidebar_bg" value="color_5" id="sidebar_bg_5">
                                        <label for="sidebar_bg_5"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="sidebar_bg" value="color_6" id="sidebar_bg_6">
                                        <label for="sidebar_bg_6"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="sidebar_bg" value="color_7" id="sidebar_bg_7">
                                        <label for="sidebar_bg_7"></label>
                                    </span>
                                    <span>
                                        <input type="radio" name="sidebar_bg" value="color_8" id="sidebar_bg_8">
                                        <label for="sidebar_bg_8"></label>
                                    </span>
                                </li>
                            </ul>
                        </li>
                        <!--切换主题配色-->
                        <li class="dropdown dropdown-profile">
                            <a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle">
                                <img class="img-avatar img-avatar-48 m-r-10" src="@ConfigSetting.GetUserLogoAbsoluteUrl(loginUser.UserAttr.Portrait)" alt="@loginUser.UserAttr.NickName" />
                                <span>@loginUser.UserAttr.NickName</span>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-right">
                                <li>
                                    <a class="multitabs dropdown-item" data-url="lyear_pages_profile.html" href="/BMS/User/UserDetail/@loginUser.UserAccount.Uid"><i class="mdi mdi-account"></i> 个人信息</a>
                                </li>
                                <li>
                                    <a id="changePassword" class="multitabs dropdown-item" data-url="lyear_pages_edit_pwd.html" href="javascript:void(0)"><i class="mdi mdi-lock-outline"></i> 修改密码</a>
                                </li>
                                <li class="dropdown-divider"></li>
                                <li>
                                    <a class="dropdown-item" href="/BMS/Login/LoginOut"><i class="mdi mdi-logout-variant"></i> 退出登录</a>
                                </li>
                            </ul>
                        </li>
                    </ul>

                </nav>

            </header>
            <!--End 头部信息-->
            <!--页面主要内容-->
            <main class="lyear-layout-content">
                <div id="iframe-content">
                    @RenderBody()

                    <!--修改密码模态框层-->
                    <div class="modal fade" id="changePasswordDialogModal" tabindex="-1" role="dialog" aria-labelledby="changePasswordDialogModal" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h6 class="modal-title" id="changePasswordDialogModal">修改密码</h6>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true">&times;</span>
                                    </button>
                                </div>
                                <div class="modal-body">
                                    <form id="passwordForm">
                                        <input type="hidden" id="id" value="0" />
                                        <div class="form-group">
                                            <label for="oldpassword">旧密码</label>
                                            <input type="text" class="form-control" id="oldPassword" name="oldPassword" placeholder="旧密码">
                                        </div>
                                        <div class="form-group">
                                            <label for="newPassword" class="col-form-label">新密码</label>
                                            <input type="password" class="form-control" id="newPassword" name="newPassword" placeholder="新密码">
                                        </div>
                                        <div class="form-group">
                                            <label for="confirmPassword" class="col-form-label">确认密码</label>
                                            <input type="password" class="form-control" id="confirmPassword" name="confirmPassword" placeholder="再次输入新密码">
                                        </div>
                                      
                                    </form>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                                    <button type="button" class="btn btn-primary" id="btnChangePassword">保存</button>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </main>
            <!--End 页面主要内容-->
        </div>
    </div>

    <script src="~/Scripts/lib/require.js"></script>
    <script>
        require.config({
            baseUrl: "/Scripts",
            paths: {
                "jquery": "lib/jquery.min",
                "jquery-confirm": "lib/jquery-confirm/jquery-confirm.min",
                "domReady": "lib/domReady",
                "validate": "lib/jquery.validate.min",
                "validate_config": "lib/jquery.validate.config",
                "popper": "lib/popper.min",
                "bootstrap": "lib/bootstrap.min",
                "PerfectScrollbar": "lib/perfect-scrollbar.min",
                "bootstrap-multitabs": "lib/bootstrap-multitabs/multitabs.min",
                "jquery-cookie": "lib/jquery.cookie.min",
                "main": "lib/index.min",
                "bootstrap-table": "lib/bootstrap-table/bootstrap-table.min",
                "bootstrap-table-zh-CN": "lib/bootstrap-table/locale/bootstrap-table-zh-CN.min",
                "jquery-treegrid": "lib/jquery-treegrid/jquery.treegrid.min",
                "bootstrap-table-treegrid": "lib/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.min",
                "bootstrap-select": "lib/bootstrap-select/bootstrap-select.min",
                "defaults-zh_CN": "lib/bootstrap-select/i18n/defaults-zh_CN.min",
                "lyear-loading": "lib/lyear-loading",
                "jquery.ajaxRequest": "lib/jquery.ajaxrequest",
                "bootstrap-notify": "lib/bootstrap-notify.min",
                "jquery.ui.widget": "lib/jquery-fileupload/js/vendor/jquery.ui.widget",
                "jquery.fileupload": "lib/jquery-fileupload/js/jquery.fileupload",
                "jquery.fileupload-process": "lib/jquery-fileupload/js/jquery.fileupload-process",
                "jquery.fileupload-validate" : "lib/jquery-fileupload/js/jquery.fileupload-validate",
                "bootstrap-datepicker": "lib/bootstrap-datepicker/bootstrap-datepicker.min",
                "bootstrap-datepicker.zh-CN": "lib/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min",
                "bootstrap-datepicker.init": "lib/common/bootstrap.datepicker.init",
        },
        shim: {
            'jquery': {
                //deps: ['bootstrap-table'],
                exports:'jquery',
            },
            // 加载非AMD规范化脚本
　　　　　　'silder_code':{
　　　　　　　　exports: 'silder_code'
　　　　　　},
            'popper': {
                deps:['jquery'],
                exports:'popper'
            },
            'bootstrap': {
                deps: ['jquery', 'popper'],
            },
            'main': {
                deps: ['jquery','PerfectScrollbar'],
                exports: 'main'
            },
            'bootstrap-multitabs': {
                deps:['jquery'],
            },
            'bootstrap-table-zh-CN': {
                deps: ['jquery', 'bootstrap-table']
            },
            'bootstrap-table': {
                desp: ['jquery', 'bootstrap'],
            },
            'bootstrap-table-treegrid': {
                desp: ['jquery', 'bootstrap-table'],

            },
            'jquery-treegrid': {
                desp: ['jquery','bootstrap-table-treegrid']
            },
            'bootstrap-select': {
                desp: ['jquery']
            },
            'defaults-zh_CN': {
                desp: ['jquery','bootstrap-select']
            },
            'lyear-loading': {
                desp: ['jquery']
            },
            'bootstrap-notify': {
                desp: ['jquery']
            },
            'jquery.ajaxRequest': {
                desp: ['jquery,lyear-loading', 'jquery-confirm','bootstrap-notify']
            },
            'jquery.ui.widget': {
                desp: ['jquery']
            },
            'jquery.fileupload': {
                desp: ['jquery','jquery.ui.widget']
            },
            'bootstrap-datepicker': {
                desp:['jquery'],
            },
            'bootstrap-datepicker.zh-CN': {
                desp: ['jquery','bootstrap-datepicker']
            },
            'bootstrap-datepicker.init': {
                desp: ['jquery', 'bootstrap-datepicker','bootstrap-datepicker.zh-CN']
             },
            'jquery.fileupload-process':{
                desp: ['jquery','jquery.fileupload']
            },
            'jquery.fileupload-validate': {
                desp: ['jquery', 'jquery.fileupload-process']
            }

　　　　　　//'backbone': {
　　　　　　//　　deps: ['underscore', 'jquery'],
　　　　　　//　　exports: 'Backbone'
　　　　　　//}

　　　　}
    })
    require([
        "jquery",
        "bootstrap",
        "jquery-cookie",
        "/Scripts/page/bms/@(((Request.RequestContext.RouteData.Values["controller"].ToString()+"/"+Request.RequestContext.RouteData.Values["action"].ToString()+".js")).ToLower())",
        "main",
    ])
    </script>
    @*<script type="text/javascript" src="~/Scripts/lib/jquery.min.js"></script>
        <script type="text/javascript" src="~/Scripts/lib/popper.min.js"></script>
        <script type="text/javascript" src="~/Scripts/lib/bootstrap.min.js"></script>
        <script type="text/javascript" src="~/Scripts/lib/perfect-scrollbar.min.js"></script>
        <script type="text/javascript" src="~/Scripts/lib/bootstrap-multitabs/multitabs.min.js"></script>
        <script type="text/javascript" src="~/Scripts/lib/jquery.cookie.min.js"></script>
        <script type="text/javascript" src="~/Scripts/lib/index.min.js"></script>*@
    @RenderSection("script", false)
</body>
</html>
